package com.goddess.yeecolor.Modle;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 评论实体类
 */
public class Comment implements Parcelable{


	private String time;
	private int id;//id
	private String unique;//用户标识
	private String addtime;//时间
	private String content;//评论标题
	private String tyepd;//类型
	private String level;
	private String replay;
	private String comment_id;//评论的id
	private List<Reply> replyList;
	private user_info info;//
	private String zan;
	private String comment;
	private List<user_info> user;
	private List<belong_info>belong;
	private int cishu;//评论数量

	private List<comments>commentses;

	public Comment(){}


	protected Comment(Parcel in) {
		time = in.readString();
		id = in.readInt();
		unique = in.readString();
		addtime = in.readString();
		content = in.readString();
		tyepd = in.readString();
		level = in.readString();
		replay = in.readString();
		comment_id = in.readString();
		zan = in.readString();
		comment = in.readString();
		cishu = in.readInt();
	}

	public static final Creator<Comment> CREATOR = new Creator<Comment>() {
		@Override
		public Comment createFromParcel(Parcel in) {
			return new Comment(in);
		}

		@Override
		public Comment[] newArray(int size) {
			return new Comment[size];
		}
	};

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUnique() {
		return unique;
	}

	public void setUnique(String unique) {
		this.unique = unique;
	}

	public String getAddtime() {
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTyepd() {
		return tyepd;
	}

	public void setTyepd(String tyepd) {
		this.tyepd = tyepd;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getReplay() {
		return replay;
	}

	public void setReplay(String replay) {
		this.replay = replay;
	}

	public String getComment_id() {
		return comment_id;
	}

	public void setComment_id(String comment_id) {
		this.comment_id = comment_id;
	}

	public List<Reply> getReplyList() {
		return replyList;
	}

	public void setReplyList(List<Reply> replyList) {
		this.replyList = replyList;
	}

	public String getZan() {
		return zan;
	}

	public void setZan(String zan) {
		this.zan = zan;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public List<user_info> getUser() {
		return user;
	}

	public void setUser(List<user_info> user) {
		this.user = user;
	}

	public List<belong_info> getBelong() {
		return belong;
	}

	public void setBelong(List<belong_info> belong) {
		this.belong = belong;
	}

	public int getCishu() {
		return cishu;
	}

	public void setCishu(int cishu) {
		this.cishu = cishu;
	}


	public user_info getInfo() {
		return info;
	}

	public void setInfo(user_info info) {
		this.info = info;
	}


	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public List<comments> getCommentses() {
		return commentses;
	}

	public void setCommentses(List<comments> commentses) {
		this.commentses = commentses;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel parcel, int i) {
		parcel.writeString(time);
		parcel.writeInt(id);
		parcel.writeString(unique);
		parcel.writeString(addtime);
		parcel.writeString(content);
		parcel.writeString(tyepd);
		parcel.writeString(level);
		parcel.writeString(replay);
		parcel.writeString(comment_id);
		parcel.writeString(zan);
		parcel.writeString(comment);
		parcel.writeInt(cishu);
	}
}
